package com.zxl.common.model.bo.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zxw
 * @date 2023/3/31
 */
@Data
public class UserAddQuery {

    @ApiModelProperty("修改时传id")
    private Integer id;

    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空")
    private String userName;

    @ApiModelProperty("密码")
    @NotBlank(message = "账号不能为空")
    private String password;

    @ApiModelProperty("昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickName;

    @ApiModelProperty("角色id")
    private Integer roleId;

    @ApiModelProperty("状态")
    private Integer status;

}
